package com.knowif.backend.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.knowif.pojo.TUser;
import com.knowif.pojo.TutorInfo;
import com.knowif.pojo.UserComment;
import com.knowif.service.UserComment_service;
import com.knowif.system.model.RestBean;

@Service
public class CommentService {

	@Autowired
	private UserComment_service userComment_service;
	
	/**
	 * @author: xingyao 
	 * @Description:  添加虚拟评论
	 * @param tUser
	 * @param tutorInfo
	 * @param userComment
	 * @return
	 */
	public RestBean<?> addVirtualComment(TUser tUser,TutorInfo tutorInfo,UserComment userComment){
		if(tUser == null || tutorInfo == null || userComment == null){
    		return RestBean.buildError("请填写正确的信息");
    	}
		return userComment_service.addVirtualComment(tUser, tutorInfo, userComment);
	}
	
}
